package com.ibm.wsspi.sca.ejb.module;

import com.ibm.ejs.container.*;

/**
 * EJSRemoteStatelessexport_PegasServiceExport_82e89d96
 */
public class EJSRemoteStatelessexport_PegasServiceExport_82e89d96 extends EJSWrapper implements ServiceRemote {
	/**
	 * EJSRemoteStatelessexport_PegasServiceExport_82e89d96
	 */
	public EJSRemoteStatelessexport_PegasServiceExport_82e89d96() throws java.rmi.RemoteException {
		super();	}
	/**
	 * processMessageBytes
	 */
	public byte[] processMessageBytes(byte[] arg0) throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		byte[] _EJS_result = null;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[1];
				_jacc_parms[0] = arg0;
			}
	com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean beanRef = (com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean)container.preInvoke(this, 0, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.processMessageBytes(arg0);
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 0, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
	/**
	 * processMessage
	 */
	public com.ibm.wsspi.sca.message.Message processMessage(com.ibm.wsspi.sca.message.Message arg0) throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		com.ibm.wsspi.sca.message.Message _EJS_result = null;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[1];
				_jacc_parms[0] = arg0;
			}
	com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean beanRef = (com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean)container.preInvoke(this, 1, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.processMessage(arg0);
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 1, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
	/**
	 * processMessageString
	 */
	public java.lang.String processMessageString(java.lang.String arg0) throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		java.lang.String _EJS_result = null;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[1];
				_jacc_parms[0] = arg0;
			}
	com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean beanRef = (com.ibm.wsspi.sca.ejb.module.impl.ServiceSessionBean)container.preInvoke(this, 2, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.processMessageString(arg0);
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 2, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
}
